package com.wyx.Common;

import com.wyx.Common.Code;
import com.wyx.Common.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
//
@RestControllerAdvice
public class ExpectionAdvice {
    @ExceptionHandler(Exception.class)
    public Result allexception(Exception ex){

        return new Result(null,500, Code.SYSTEM_ERR);
    }
}
